import "@scss/header.scss";
import "@scss/tikuList.scss";
import http from "../utils/request.js";
import { renderTiKuList,renderName } from "./render.js";

(function () {
    renderTiKuList();
    renderName()
})();


//选择考试类型
$("body").on("click", "#allTestsFinished", async function () {

    renderTiKuList();

})
//参加考试
$("body").on("click", ".join", async function () {

    let testId = $(this).parent().attr("data");
    sessionStorage.setItem("testId", testId);
    window.location.href = "../examinationProcess.html";

})

//查看解析
$("body").on("click", ".joinin", async function () {

    let testId = $(this).parent().attr("data");
    sessionStorage.setItem("testId", testId.trim());
    window.location.href = "../examAnalysis.html";
})

